<!-- 地址相关页面的头部组件 -->
<template>
  <div class="title">
    <i class="iconfont title-icon" @click="$router.go(-1)">&#xe604;</i>
    <slot></slot>
    <span class="title-func" @click="$emit('behavior')">{{action}}</span>
  </div>
</template>

<script>
//composition
export default {
  name:'addressTitle',
  props:['action']
}
</script>

<style scoped lang="scss">
@import '@/styles/theme.scss';
.title{
  display: flex;
  height: 11.7333vw;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.8vw;
  color: $theme-font-color;
  font-size: 16px;
  position: fixed;
  top: 0;
  left: 0;
  background-color: $white;
  &-icon{
    color:#b6b6b6;
    font-size: 20px;
  }
  &-func{
    font-size: 14px;
  }
}
</style>